﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="quanzi_ad_edit.aspx.cs" Inherits="DTcms.Web.admin.advert.quanzi_ad_edit" %>
<%@ Import Namespace="DTcms.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>编辑幻灯片</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <link rel="stylesheet" type="text/css" href="../../scripts/artdialog/ui-dialog.css" />
    <link rel="stylesheet" type="text/css" href="../skin/icon/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../skin/default/style.css" />
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/webuploader/webuploader.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../editor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../editor/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="../../editor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
            //初始化上传控件
            $(".upload-img").InitUploader({ sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });
        });
        //修改关联客户
        function EditCompany() {
            var d = top.dialog({
                title: '修改关联企业',
                url: 'dialog/dialog_company.aspx',
                width: 750,
                height: 450,
                data: window //传入当前窗口
            }).showModal();
            d.lb_companyname = $("#lbCompanyName");
            d.txt_companyname = $("#txtCompanyName");
            d.companyid = $("#txtCompanyID");
        }
        //修改关联圈子
        function EditQuanzi() {
            var d = top.dialog({
                title: '修改关联石材圈',
                url: '/admin/dialog/dialog_quanzi.aspx',
                width: 750,
                height: 450,
                data: window //传入当前窗口
            }).showModal();
            d.lb_quanziname = $("#lbQuanziName");
            d.quanziid = $("#txtQuanziID");
        }
    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="quanzi_ad_list.aspx" class="back"><i class="iconfont icon-up"></i><span>返回列表页</span></a>
            <a href="../center.aspx"><i class="iconfont icon-home"></i><span>首页</span></a>
            <i class="arrow iconfont icon-arrow-right"></i>
            <a href="quanzi_ad_list.aspx"><span>幻灯片广告</span></a>
            <i class="arrow iconfont icon-arrow-right"></i>
            <span>编辑幻灯片</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
        <div id="floatHead" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a class="selected" href="javascript:;">基本信息</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>是否发布</dt>
                <dd>
                    <div class="rule-single-checkbox">
                        <asp:CheckBox ID="cbStatus" runat="server" Checked="True" />
                    </div>
                    <span class="Validform_checktip">*不发布前台则无法显示</span>
                </dd>
            </dl>
           <dl>
                <dt>关联石材圈</dt>
                <dd>
                    <asp:Label ID="lbQuanziName" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="txtQuanziID" runat="server" Text="0" Style="display: none"></asp:TextBox>
                    <a class="icon-btn" onclick="EditQuanzi()"><i class="iconfont icon-edit"></i><span>设置关联石材圈</span></a>
                </dd>
            </dl>
            <dl>
                <dt>广告名称</dt>
                <dd>
                    <asp:TextBox ID="txtTitle" runat="server" CssClass="input normal" datatype="*1-100" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">*类别中文名称，100字符内</span></dd>
            </dl>
            <dl>
                <dt>显示图片</dt>
                <dd>
                    <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input normal upload-path" />
                    <div class="upload-box upload-img"></div>
                </dd>
            </dl>
            <dl>
                <dt>排序数字</dt>
                <dd>
                    <asp:TextBox ID="txtSortId" runat="server" CssClass="input small" datatype="n" sucmsg=" ">99</asp:TextBox>
                    <span class="Validform_checktip">*数字，越小越向前</span>
                </dd>
            </dl>
            <dl>
                <dt>关联企业</dt>
                <dd>
                    <asp:Label ID="lbCompanyName" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="txtCompanyID" runat="server" Text="0" Style="display: none"></asp:TextBox>
                    <a id="itemAddButton" class="icon-btn" onclick="EditCompany()"><i class="iconfont icon-edit"></i><span>设置关联企业</span></a>
                </dd>
            </dl>
        </div>
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-wrap">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
            </div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
